#输入一行字符，分别统计出其中英文字母、空格、数字和其它字符的个数。

user_input = list(input())
print(user_input)

english_count = 0
digit_count = 0
kongge_count = 0
other_count = 0

for i in user_input:
    if "a" <= i <= "z" or "A" <= i <= "Z":
        english_count += 1
    elif "0" <= i <= "9":
        digit_count += 1
    elif " " == i:
        kongge_count += 1
    else:
        other_count += 1

print("英语字符有{}个，数字有{}个，空格有{}个，其他字符有{}个".format(english_count,digit_count,kongge_count,other_count))